Testing your Service
After you created your service, and added a CDN provider, you can start accessing your content. In order to do so, you first need to set up the default Traffic Policy:
- Navigate to your service.
- In the sidebar, under Traffic Steering, select Traffic Policies.
- Click on the Edit icon for the default policy.
- Select the CDNs you would like to use for default policy and click Next.
The default traffic policy is now set and traffic can be directed to your service. Going back to the Services tab, copy the CNAME of your service. Within you DNS provider, you should add a CNAME record for your domain which points to your service CNAME, for example:
CNAME www.example.com irtn6xjclw6.ioriveredge.net
You can verify your configuration using the dig command, for example:
dig www.example.com
Expected output:
;; ANSWER SECTION:
www.example.com. 2722 IN CNAME irtn6xjclw6.ioriveredge.net.
irtn6xjclw6.ioriveredge.net. 300 IN CNAME ioriver.map.fastly.net.
ioriver.map.fastly.net. 51 IN A 199.232.211.52
ioriver.map.fastly.net. 51 IN A 199.232.215.52
Your content is now being served via your IO River service, you can add additional configuration (such as domain, origins, behaviors, etc) and add additional CDN providers.